<?php

// +----------------------------------------------------------------------
// | Apprh.Shop
// +----------------------------------------------------------------------
// | Copyright (c) 2017-2027 http://www.apprh.com All rights reserved.
// +----------------------------------------------------------------------
// | Notice: This code is not open source, it is strictly prohibited
// |         to distribute the copy, otherwise it will pursue its
// |         legal responsibility.
// +----------------------------------------------------------------------
// | Author: pp <124910168@qq.com>
// +----------------------------------------------------------------------

namespace app\home\controller\member;

use controller\BasicHome;
use think\Db;
use think\Controller;

/**
 * Wap后端
 * Class Admin
 * @package app\home\controller\member
 * @author pp <124910168@qq.com>
 * @date 2020/05/15 10:41
 */
class Admin extends BasicHome
{
    public function _initialize()
    {
        // halt(session('member'));
        parent::_initialize();
        $this->uid = session('uid');
        if(!$this->uid){
            $this->redirect(url('home/login/index'));
        }
        $this->member = $this->member->getOneDarry(['id' => $this->uid]);
        $this->assign('member', $this->member);
    }
}
